import re
# str = 'balabalasxxabcxxtringxxafcx'
# p = re.compile(r'(a.c)')
# m = p.search(str)
# m2 = p.findall(str)
# print m.groups()
# print m2
# print p.sub(r'want\1want' , str)

print re.match('^abc$','abc')



